from django.conf import settings
from ronglian_sms_sdk import SmsSDK
from celery_tasks.main import app


@app.task(name='sms_send')
def sms_send(mobile, sms_data):
    sm = SmsSDK(settings.ACCID, settings.ACCTOKEN, settings.APPID)
    sm.sendMessage('1', mobile, sms_data)